/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2011
 */

package com.core.basic.secure.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;
import common.base.*;
import common.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.util.page.*;
import cn.org.rapid_framework.page.*;


import com.core.basic.secure.domain.*;
import com.core.basic.secure.dao.*;
import com.core.basic.secure.service.*;
import com.core.basic.secure.query.*;

/**
 * @author badqiu
 * @author hunhun
 * @since 4.0 
 */

@SuppressWarnings(value = "all")
@Service
@Transactional
public class UsersHasRolesManager extends BaseManager<UsersHasRoles,java.lang.Long>{

	private UsersHasRolesDao usersHasRolesDao;
	//增加setXXXX()方法,spring就可以通过autowire自动设置对象属性(默认byName,请注意大小写)
	public void setUsersHasRolesDao(UsersHasRolesDao dao) {
		this.usersHasRolesDao = dao;
	}
	public EntityDao getEntityDao() {
		return this.usersHasRolesDao;
	}
	
	@Transactional(readOnly=true)
	public Page<UsersHasRoles>  findPage(UsersHasRolesQuery query) {
		return usersHasRolesDao.findPage(query);
	}
	
}
